package com.rom.ratethehell.entities;

import com.rom.ratethehell.protocol.ServerError;

public class ServerResponse {
	private ServerError errorId;
	public ServerResponse(Long id, String returnMessage) {
		errorId = ServerError.values()[id.intValue()];
	}
	public boolean isOk() {
		return errorId == ServerError.OK;
		
	}
	public ServerError getError() {
		return errorId;
	}

	
}
